<!--
 *****************************************************************************
 *
 * Copyright © 2010-2019 shuncom team All Rights Reserved
 * 
 * 
 * 创建时间: 2019年06月14日
 * 创建人: zzy0_0
 * 
 ****************************************************************************
 -->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="jquery.min.js"></script>
    <script>

	function btnAction() {
		console.log ("dd");
		$.ajax ({
			method: "get",
			url: "http://127.0.0.1:8080/test",
			data: {name: "John", location: "Boston"}
		}).done (function (msg) {
			console.log (msg);
			// alert ("Data Saved: " + msg);
		});
	}
    </script>
</head>
<body>


<button type="submit" onclick="btnAction()">
    点我看跨域
</button>
</body>
</html>